#pragma once

namespace qb{
	namespace ht{
		class Table;
        class TableWriter{
		protected:
			int			m_tableid;
		public:
			TableWriter(int tableid) :m_tableid(tableid){}
			virtual ~TableWriter(){}
			int ReadRecord(void* record, int size);
			void AddRecord(const void* record, int size);
			void UpdateRecord(const void* record, int size);
			void DeleteRecord(const void* record, int size);

            virtual void OnNetMessage(int funcid, void* wParam, void* lParam);
		};

	}//namespace ht
}//namespace qb
